<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>

<body bgcolor="#FFFFFF" text="#000000">

  <table width="100%" height="23" cellspacing="0" cellpadding="2">
    <tr bgcolor="#E4E4E4"> 
      <td width="15%">&nbsp;Images of {$merInfo.name}</td>
      <td width="70%"><font color="#FF0000">&nbsp;{$error_message}</font></td>
      <td width="10%" align="right">&nbsp;<A href="{$backurl}" target="_self">Back</A>&nbsp;&nbsp;</td>
    </tr>
    

   <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="23" align="right">Logo Images:</td>
      <td height="23" colspan="2">&nbsp;
      
	      <table width="100%" cellspacing="0" cellpadding="2">
	      	{foreach item=image from=$arrImages}
			    <tr> 
			      <td width="15%" align="right">&nbsp;<img src="../pic/thumbnail.php?type=logo&width=0&height=0&fileName={$image.imageID}.{$image.extName}" border="0"></td>
			      <td width="85%" align="left"><font color="#FF0000">&nbsp;
			      	<A href="?action=delete&menuGid={$menuGid}&menuid={$menuid}&imageid={$image.imageID}&id={$id}&backurl_base64={$backurl_base64}" target="_self">Delete</A>&nbsp;&nbsp;|&nbsp;&nbsp;
			      	{if $image.isMain == 'true'}
			      		<A href="?action=setMain&menuGid={$menuGid}&menuid={$menuid}&piid={$image.id}&id={$id}&ismain=0&backurl_base64={$backurl_base64}" target="_self">Set Minor</A>
			      	{else}
			      		<A href="?action=setMain&menuGid={$menuGid}&menuid={$menuid}&piid={$image.id}&id={$id}&ismain=1&backurl_base64={$backurl_base64}" target="_self">Set Main</A>
			      	{/if}
			      	
			      	</font>
			      </td>
			    </tr>
		    {/foreach}
		    	
		  </table>
          </td>
    </tr>


	
       <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
     	<td height="23" align="right">Logo of {$merInfo.name}:</td>
     	<td height="23" colspan="2">
     		<form method="post" action="" enctype="multipart/form-data">
	      	<input name="image[]" type="file" size="45">
	      	
	      	<input name="attributeID" type="hidden" id="attributeID" value="{$data.attributeID}">
	      	
	      	<input type="submit" name="action" value="Upload">
	      	
	      	<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
		    <input name="menuid" type="hidden" id="menuid" value="{$menuid}">
		    <input name="id" type="hidden" id="id" value="{$id}">
		    <input name="backurl" type="hidden" id="backurl" value="{$backurl}">
	    </form>
	</td>
   </tr>

  </table>

</body>
</html>